package com.financing.wap.dao.impl;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IEmailTemplateDao;
import com.financing.wap.dto.EmailTemplateDTO;

@Repository("emailTemplateDaoImpl")
public class EmailTemplateDaoImpl extends BaseDaoImpl implements
		IEmailTemplateDao {

	@Override
	public EmailTemplateDTO queryTemplateByType(String ttype) {
		return (EmailTemplateDTO) this.sqlMapClientTemplate.queryForObject(SqlName.queryEmailTemplateByType, ttype);
	}

	@Override
	public Class<EmailTemplateDTO> getEntityClass() {
		return EmailTemplateDTO.class;
	}

}
